package com.booktrading.service.impl;

import com.booktrading.mapper.AdminLogMapper;
import com.booktrading.model.AdminLog;
import com.booktrading.service.AdminLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class AdminLogServiceImpl implements AdminLogService {
    @Autowired
    private AdminLogMapper adminLogMapper;

    @Override
    public void insert(AdminLog log) {
        adminLogMapper.insert(log);
    }

    @Override
    public List<AdminLog> getAllLogs() {
        return adminLogMapper.selectAll();
    }
} 